﻿@model DE_MVC_WyFy.Areas.Administrator.Models.ProductType
@{
    ViewBag.Title = "Edit";
    Layout = "~/Areas/Administrator/Views/Shared/Layout.cshtml";
}

<link rel="stylesheet" href="@Url.Content("~/Content/Admin/css/superfish.css")" type="text/css" media="all"/>
<link rel="stylesheet" href="@Url.Content("~/Content/Admin/css/vertical_slider.css")" type="text/css" media="all"/>
<link rel="stylesheet" href="@Url.Content("~/Content/Admin/css/form.css")" type="text/css" media="all"/>

<div class="content_all">
    <h2>Edit</h2>

    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <div class="contact_form">
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary(true)
            <fieldset>
                <legend>Thông tin loại sản phẩm</legend>
                @Html.HiddenFor(model => model.ProductTypeID)
                <ul>
                    <li>
                        <div class="form-input-box">
                            <span class="lable">@Html.LabelFor(model => model.ProductTypeName): </span>
                            @Html.TextBoxFor(model => model.ProductTypeName, new { @class = "text" })
                            @Html.ValidationMessageFor(model => model.ProductTypeName)

                        </div>
                    </li>
                    <li>
                        <div class="form-input-box">
                            <span class="lable">@Html.LabelFor(model => model.IsDeleted): </span>
                            @Html.EditorFor(model => model.IsDeleted, new { @class = "text" })
                            @Html.ValidationMessageFor(model => model.IsDeleted)
                        </div>
                    </li>
                    <li>
                        <div class="form-input-box">
                            <span class="lable">@Html.LabelFor(model => model.KeyWords): </span>
                            @Html.TextBoxFor(model => model.KeyWords, new { @class = "text" })
                            @Html.ValidationMessageFor(model => model.KeyWords)
                        </div>
                    </li>
                    <li>
                        <div class="form-input-box">
                            <span class="lable">@Html.LabelFor(model => model.IsMale): </span>
                            @Html.EditorFor(model => model.IsMale, new { @class = "text" })
                            @Html.ValidationMessageFor(model => model.IsMale)
                        </div>
                    </li>
                    <li>
                        <div class="form-input-box">
                            <span class="lable">@Html.LabelFor(model => model.Parent): </span>
                            @Html.DropDownList("ProductTypeID","Product Type")
                            @Html.ValidationMessageFor(model => model.Parent)

                        </div>
                    </li>
                    <li>
                        <div class="form-input-box">
                            <span class="lable">@Html.LabelFor(model => model.IDCategory): </span>
                           @Html.DropDownList("IDCategory","Category")
                            @Html.ValidationMessageFor(model => model.IDCategory)
                        </div>
                    </li>
                    <li>
                        <div class="form-input-box">
                            <label class="lable">&nbsp;</label>
                            <input class="submit" type="submit" name="" value="Save" id="submit_form">
                        </div>
                        @* <div class="form-message"><span class="validate submit">Please fill in all the fields</span></div>*@
                    </li>
                </ul>
            </fieldset>
        }
    </div>
    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
</div>
